﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-03-19 19:39
    /// 描 述：商铺分类实体类
    /// </summary>
    [Table("goods_category")]
    public class GoodsCategoryEntity : BaseEntity
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        /// <returns></returns>
        public string category_name { get; set; }
        /// <summary>
        /// 分类编码
        /// </summary>
        /// <returns></returns>
        public string category_code { get; set; }
        /// <summary>
        /// 父分类ID
        /// </summary>
        /// <returns></returns>
        public int? parent_id { get; set; }
        /// <summary>
        /// 分类层级
        /// </summary>
        /// <returns></returns>
        public int? category_level { get; set; }
        /// <summary>
        /// 分类状态
        /// </summary>
        /// <returns></returns>
        public int? category_status { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modified_time { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? create_time { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }

        /// <summary>
        /// 出租金额
        /// </summary>
        /// <returns></returns>
        public float? rule { get; set; }
        /// <summary>
        /// 1天2小时
        /// </summary>
        /// <returns></returns>
        public string unit { get; set; }
    }
}
